9694e5
@@ -53,15 +53,13 @@
public class HipchatComponent extends UriEndpointComponent {
         if (endpoint.getConfiguration().getAuthToken() == null) {
             throw new HipchatException("OAuth 2 auth token must be specified");
         }
-        parseUri(uri, endpoint);
+        parseUri(remaining, endpoint);
         LOG.debug("Using Hipchat API URL: {}", endpoint.getConfiguration().hipChatUrl());
         return endpoint;
     }
 
-    private void parseUri(String uri, HipchatEndpoint endpoint) throws Exception {
-        // strip scheme
-        uri = ObjectHelper.after(uri, ":");
-        uri = URISupport.normalizeUri(uri);
+    private void parseUri(String remaining, HipchatEndpoint endpoint) throws Exception {
+        String uri = URISupport.normalizeUri(remaining);
 
         URI hipChatUri = new URI(uri);
         if (hipChatUri.getHost() != null) {
